package com.kuang.log;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * @program: spring-study
 * @description:
 * @author: 陈恩涛
 * @create: 2020-07-13 21:41
 **/
public class Log implements MethodBeforeAdvice {
    //method要执行的目标对象的方法
    //objects 参数
    //target 目标对象
    @Override
    public void before(Method method, Object[] objects, Object target) throws Throwable {
        System.out.println(target.getClass().getName()+"的"+method.getName()+"方法被执行了");
    }
}
